<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">消费保障</a></li>
        </ul>
        <div class="product-view-area">
            <p>消费保障</p>
            <a href="<?php echo site_url('providerguarantee/add')?>">添加</a>
        </div>
        <div class="yunfei-templete-grid">
            <?php if ($list->num_rows() > 0) :?>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th width="150">担保名称</th>
                            <th width="300">担保信息</th>
                            <th width="80">排序</th>
                            <th width="120">创建时间</th>
                            <th width="60">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($list->result() as $key=>$item):?>
                        <tr>
                            <td><?php echo $item->name ?></td>
                            <td><?php echo $item->guarantee ?></td>
                            <td><?php echo $item->sort ?></td>
                            <td><?php echo $item->created_at ?></td>
                            <td><a href="<?php echo site_url('providerguarantee/edit/'.$item->id)?>">编辑</a></td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
                <div class="your-page pagination pagination-right"><?php echo $pg_link;?></div>
            <?php else :?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>